#include "Function.h"

using namespace std;

Function::Function(string name, long start_cycle, long end_cycle) {
	FunctionName = name;
	StartCycle = start_cycle;
    EndCycle = end_cycle;
    SelfExecTime = 0;
    ChildrenExecTime = 0;
    SelfChildrenExecTime = EndCycle - StartCycle;    
    ToBeFilteredOut = false;
}	

Function::~Function() {
} 

void Function::print()
{
	cout << "Function " << FunctionName << " : \n";
	cout << "	Start cycle: " << StartCycle << "\n";	
	cout << "	End cycle: " << EndCycle << "\n";
	cout << "	Self: " << SelfExecTime << "\n";	
	cout << "	Children: " << ChildrenExecTime << "\n";	
	cout << "	Self + Children: " << SelfChildrenExecTime << "\n";
	cout << "-----------------------------------------------------------------" << endl;
}




